#from webmapper.geophotos.models import Photo

from django import forms
from django.forms import ModelForm
from webmapper.geophotos import models

class PhotoFormInline(forms.Form):
  title = forms.CharField(label="Photo title", max_length=200, required=False)
  media = forms.FileField(label="Photo file")


class PhotoForm(ModelForm):
  class Meta:
    model = models.GeoPhoto